package cn.cmdr.mapper;

import cn.cmdr.pojo.Staff;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface StaffMapper extends BaseMapper<Staff> {
    public List<Staff> getStaffPageList(Page page, @Param("ew")Wrapper wrapper);
    @Select("select staff_code from cmdr_staff where staff_code=#{staffCode}")
    Staff getStaffByCode(@Param("staffCode")String staffCode);
}
